package com.cskaoyan.bean.bo;

import com.cskaoyan.bean.pojo.Goods;
import com.cskaoyan.bean.pojo.GoodsAttribute;
import com.cskaoyan.bean.pojo.GoodsProduct;
import com.cskaoyan.bean.pojo.GoodsSpecification;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 杨丰韶
 * @class GoodsUpdateBo
 */
@Data
public class GoodsUpdateBo {

    @Valid
    @NotNull
    private Goods goods;
    @Valid
    @NotNull(message = "规格列表不能为空")
    private List<GoodsSpecification> specifications;
    @Valid
    @NotNull(message = " ")
    private List<GoodsProduct> products;
    @Valid
    @NotNull(message = " ")
    private List<GoodsAttribute> attributes;


}
